Rashi on II Kings
‘You will surely live.’ Pertaining to Chazoeil he said that he would live instead of Ben-Hadad [and occupy] the throne.6It is read [=קְרִי] as ‘לוֹ’, meaning, “say to him, ‘you will surely recover,’” but it is written [=כְּתִיב] as ‘Gא’, and the meaning is “say, ‘you will surely not recover.’” According to Rashi the קְרִי pertains to Chazoeil, and the כְּתִיב pertains to Ben-Hadad; or Elisha meant that Ben-Hadad would not die of his illness, but he would die by assassination. Alternatively, the כְּתִיב reflects what was on Elisha’s mind and the קְרִי is what he said.—Radak